
;(function($){
    $.notice_pop=function(){
        /**
         **初始化方法
         **/
        var por_id ="";
        var init = function(id, title,content,detailPath) {
            var windowWidth=$(document).width();
			var windowHeight=$(document).height();
			var weight=380;
			var height=280;
			$("body").append(
				"<div id='"+id+"'style='display:none;background:white;position:absolute;border:1px solid #e0e0e0;z-index:99;width:"+weight+"px;height:"+height+"px;top:"+(windowHeight-height-136)+"px;right:"+0+"px'>"+
				"<div style='line-height:32px;background:#f6f0f3;border-bottom:1px solid #e0e0e0;font-size:14px;padding:0 0 0 10px;'>" +
				"<div style='float:left; width: 330px;'><b>"+title+"</b></div><div id='close_"+id+"' style='float:right;cursor:pointer;background: #3E97DF;color: white;width: 25px;padding-left: 8px;'><b style='margin-right: 5px'>X</b></div>" +
				"<div style='clear:both'></div>"+
				"</div>" +
				"<div id='"+id+"_content' style='background: white;text-indent: 2em;margin: 30px 25px auto 25px;font-size: 16px;'>" +
				content+
				"</div>"+
				"<a target='_blank' href='"+detailPath+"' id='"+id+"viewdetails' style='background: white;text-indent: 2em;margin: 30px 25px auto 25px;font-size: 16px;'>" +
				"查看详情"+
				"</a>"+
				"</div>"
			);
        }

        var out_colse=function(id){
            $("#close_"+id).bind("click", function(){
                $('#'+id).fadeOut(1000);
            });
        };
        this.open = function (id, title,content, detailPath){
            init(id, title,content, detailPath);
            out_colse(id)
            $('#'+id).fadeIn(600);
        };

        this.colse=function close(id){
            $('#'+id).fadeOut(1000);
        }



    }

})(jQuery);